package ar.edu.unsam.algo3.plantasvszombies.wicket.components;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.OnChangeAjaxBehavior;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;

@SuppressWarnings("all")
public class XOnChangeAjaxBehavior extends OnChangeAjaxBehavior {
  private Procedure1<AjaxRequestTarget> procedure;
  
  protected void onUpdate(final AjaxRequestTarget target) {
    this.procedure.apply(target);
  }
  
  public Procedure1<AjaxRequestTarget> setOnUpdate(final Procedure1<AjaxRequestTarget> procedure) {
    Procedure1<AjaxRequestTarget> _procedure = this.procedure = procedure;
    return _procedure;
  }
}
